/*-
 * PayloadData.java
 *
 * Date: 2017年1月5日
 * Time: 下午4:30:21
 *
 * 版权所有©2012-2013 rengh
 */

package com.lmx.kathHack.serialize;


import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.katharsis.jackson.deserializer.ResourceRelationshipsDeserializer;

import java.util.HashMap;
import java.util.Map;

/**
 * @see ResourceRelationshipsDeserializer
 */
public class PayloadDatas {

    @JsonIgnore
    private final Map<String, Object> payloadList = new HashMap<>();

    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.payloadList;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.payloadList.put(name, value);
    }
}

